package cn.wsalix.admin.service;

import java.util.List;

import cn.anlaser.service.ParentService;
import cn.wsalix.admin.entity.RolePermit;
import cn.wsalix.admin.entity.SysRole;
import cn.wsalix.admin.form.RoleForm;
import cn.wsalix.admin.repository.RoleRepository;

public interface RoleService extends
		ParentService<RoleForm, RoleRepository, SysRole> {

/*	*//**
	 * @param id
	 * @return
	 *//*
	List<RolePermit> findPermitsByUserId(Long userId);

	*//**
	 * @param userId
	 * @return
	 *//*
	List<SysRole> findRolesByUserId(Long userId);*/
	/**
	 * @param userId
	 * @return
	 */
	List<SysRole> findUnRolesByUserId(Long userId);


	/**
	 * @param userId
	 * @return
	 */
	List<SysRole> findUnRolesByMenuId(Long menuId);


	public SysRole findByCodeOne(String code);

	public SysRole findByNameOne(String name);

	public List<SysRole> findsByName(String name);

	public List<SysRole> findsByCode(String code);

/*	void initRoles();*/


}
